package com.hgyc.mom.base.entity;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.*;

import com.hgyc.mom.common.annotation.Excel;
import com.hgyc.mom.core.mybatis.EQ;
import com.hgyc.mom.core.mybatis.Like;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * <p>
 * 产品BOM
 * </p>
 *
 * @author fwj
 * @since 2025-07-10
 */
@Data
@TableName("base_bom")
@Schema(name="产品BOM对象", description="产品BOM对象")
public class Bom implements Serializable {
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @Schema(description = "流水号")
    private Long id;

    @Schema(description = "物料产品ID")
    private Long materialId;

    @Excel(name = "物料产品名称")
    @Like
    @Schema(description = "物料产品名称")
    private String materialName;

    @Like
    @Excel(name = "物料产品编码")
    @Schema(description = "物料产品编码")
    private String materialCode;

    @Excel(name = "是否启用")
    @EQ
    @Schema(description = "是否启用")
    private String status;

    @Excel(name = "版本号")
    @Schema(description = "版本号")
    private String version;

    @Excel(name = "是否默认版本")
    @Schema(description = "是否默认版本")
    private String isDefault;

    @Excel(name = "生效日期")
    @Schema(description = "生效日期")
    private LocalDate effectiveDate;

    @Excel(name = "备注")
    @Schema(description = "备注")
    private String remark;

    @TableField(fill = FieldFill.INSERT)
    @Schema(description = "创建者")
    private Long createBy;

    @TableField(fill = FieldFill.INSERT)
    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.UPDATE)
    @Schema(description = "更新者")
    private Long updateBy;

    @TableField(fill = FieldFill.UPDATE)
    @Schema(description = "更新时间")
    private LocalDateTime updateTime;

}